Optimal. Leaf size=169 \[ -\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^5 \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{4 d^4}-\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1807, 835, 807, 266, 63, 208} \begin {gather*} -\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {3 e^5 \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{4 d^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 208
Rule 266
Rule 807
Rule 835
Rule 1807
Rubi steps
\begin {align*} \int \frac {(d+e x)^2}{x^6 \sqrt {d^2-e^2 x^2}} \, dx &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {\int \frac {-10 d^3 e-9 d^2 e^2 x}{x^5 \sqrt {d^2-e^2 x^2}} \, dx}{5 d^2}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}+\frac {\int \frac {36 d^4 e^2+30 d^3 e^3 x}{x^4 \sqrt {d^2-e^2 x^2}} \, dx}{20 d^4}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {\int \frac {-90 d^5 e^3-72 d^4 e^4 x}{x^3 \sqrt {d^2-e^2 x^2}} \, dx}{60 d^6}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}+\frac {\int \frac {144 d^6 e^4+90 d^5 e^5 x}{x^2 \sqrt {d^2-e^2 x^2}} \, dx}{120 d^8}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}-\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}+\frac {\left (3 e^5\right ) \int \frac {1}{x \sqrt {d^2-e^2 x^2}} \, dx}{4 d^3}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}-\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}+\frac {\left (3 e^5\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {d^2-e^2 x}} \, dx,x,x^2\right )}{8 d^3}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}-\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}-\frac {\left (3 e^3\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {d^2}{e^2}-\frac {x^2}{e^2}} \, dx,x,\sqrt {d^2-e^2 x^2}\right )}{4 d^3}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{5 x^5}-\frac {e \sqrt {d^2-e^2 x^2}}{2 d x^4}-\frac {3 e^2 \sqrt {d^2-e^2 x^2}}{5 d^2 x^3}-\frac {3 e^3 \sqrt {d^2-e^2 x^2}}{4 d^3 x^2}-\frac {6 e^4 \sqrt {d^2-e^2 x^2}}{5 d^4 x}-\frac {3 e^5 \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{4 d^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.04, size = 79, normalized size = 0.47 \begin {gather*} -\frac {\sqrt {d^2-e^2 x^2} \left (d^5+3 d^3 e^2 x^2+10 e^5 x^5 \, _2F_1\left (\frac {1}{2},3;\frac {3}{2};1-\frac {e^2 x^2}{d^2}\right )+6 d e^4 x^4\right )}{5 d^5 x^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.64, size = 115, normalized size = 0.68 \begin {gather*} \frac {3 e^5 \tanh ^{-1}\left (\frac {\sqrt {-e^2} x}{d}-\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{2 d^4}+\frac {\sqrt {d^2-e^2 x^2} \left (-4 d^4-10 d^3 e x-12 d^2 e^2 x^2-15 d e^3 x^3-24 e^4 x^4\right )}{20 d^4 x^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 98, normalized size = 0.58 \begin {gather*} \frac {15 \, e^{5} x^{5} \log \left (-\frac {d - \sqrt {-e^{2} x^{2} + d^{2}}}{x}\right ) - {\left (24 \, e^{4} x^{4} + 15 \, d e^{3} x^{3} + 12 \, d^{2} e^{2} x^{2} + 10 \, d^{3} e x + 4 \, d^{4}\right )} \sqrt {-e^{2} x^{2} + d^{2}}}{20 \, d^{4} x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.27, size = 365, normalized size = 2.16 \begin {gather*} \frac {x^{5} {\left (\frac {5 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )} e^{10}}{x} + \frac {15 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{2} e^{8}}{x^{2}} + \frac {40 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{3} e^{6}}{x^{3}} + \frac {110 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{4} e^{4}}{x^{4}} + e^{12}\right )} e^{3}}{160 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{5} d^{4}} - \frac {3 \, e^{5} \log \left (\frac {{\left | -2 \, d e - 2 \, \sqrt {-x^{2} e^{2} + d^{2}} e \right |} e^{\left (-2\right )}}{2 \, {\left | x \right |}}\right )}{4 \, d^{4}} - \frac {{\left (\frac {110 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )} d^{16} e^{38}}{x} + \frac {40 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{2} d^{16} e^{36}}{x^{2}} + \frac {15 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{3} d^{16} e^{34}}{x^{3}} + \frac {5 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{4} d^{16} e^{32}}{x^{4}} + \frac {{\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )}^{5} d^{16} e^{30}}{x^{5}}\right )} e^{\left (-35\right )}}{160 \, d^{20}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 164, normalized size = 0.97 \begin {gather*} -\frac {3 e^{5} \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{4 \sqrt {d^{2}}\, d^{3}}-\frac {6 \sqrt {-e^{2} x^{2}+d^{2}}\, e^{4}}{5 d^{4} x}-\frac {3 \sqrt {-e^{2} x^{2}+d^{2}}\, e^{3}}{4 d^{3} x^{2}}-\frac {3 \sqrt {-e^{2} x^{2}+d^{2}}\, e^{2}}{5 d^{2} x^{3}}-\frac {\sqrt {-e^{2} x^{2}+d^{2}}\, e}{2 d \,x^{4}}-\frac {\sqrt {-e^{2} x^{2}+d^{2}}}{5 x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.98, size = 158, normalized size = 0.93 \begin {gather*} -\frac {3 \, e^{5} \log \left (\frac {2 \, d^{2}}{{\left | x \right |}} + \frac {2 \, \sqrt {-e^{2} x^{2} + d^{2}} d}{{\left | x \right |}}\right )}{4 \, d^{4}} - \frac {6 \, \sqrt {-e^{2} x^{2} + d^{2}} e^{4}}{5 \, d^{4} x} - \frac {3 \, \sqrt {-e^{2} x^{2} + d^{2}} e^{3}}{4 \, d^{3} x^{2}} - \frac {3 \, \sqrt {-e^{2} x^{2} + d^{2}} e^{2}}{5 \, d^{2} x^{3}} - \frac {\sqrt {-e^{2} x^{2} + d^{2}} e}{2 \, d x^{4}} - \frac {\sqrt {-e^{2} x^{2} + d^{2}}}{5 \, x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^2}{x^6\,\sqrt {d^2-e^2\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 8.96, size = 510, normalized size = 3.02 \begin {gather*} d^{2} \left (\begin {cases} - \frac {e \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{5 d^{2} x^{4}} - \frac {4 e^{3} \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{15 d^{4} x^{2}} - \frac {8 e^{5} \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{15 d^{6}} & \text {for}\: \left |{\frac {d^{2}}{e^{2} x^{2}}}\right | > 1 \\- \frac {i e \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}}{5 d^{2} x^{4}} - \frac {4 i e^{3} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}}{15 d^{4} x^{2}} - \frac {8 i e^{5} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}}{15 d^{6}} & \text {otherwise} \end {cases}\right ) + 2 d e \left (\begin {cases} - \frac {1}{4 e x^{5} \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}} - \frac {e}{8 d^{2} x^{3} \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}} + \frac {3 e^{3}}{8 d^{4} x \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}} - \frac {3 e^{4} \operatorname {acosh}{\left (\frac {d}{e x} \right )}}{8 d^{5}} & \text {for}\: \left |{\frac {d^{2}}{e^{2} x^{2}}}\right | > 1 \\\frac {i}{4 e x^{5} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} + \frac {i e}{8 d^{2} x^{3} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} - \frac {3 i e^{3}}{8 d^{4} x \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} + \frac {3 i e^{4} \operatorname {asin}{\left (\frac {d}{e x} \right )}}{8 d^{5}} & \text {otherwise} \end {cases}\right ) + e^{2} \left (\begin {cases} - \frac {e \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{3 d^{2} x^{2}} - \frac {2 e^{3} \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{3 d^{4}} & \text {for}\: \left |{\frac {d^{2}}{e^{2} x^{2}}}\right | > 1 \\- \frac {i e \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}}{3 d^{2} x^{2}} - \frac {2 i e^{3} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}}{3 d^{4}} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________